package com.app.qbake.module.video;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.View;

import com.wind.base.mvp.view.TabLayoutFragment;
import com.wind.data.square.SquareRequest;
import com.app.qbake.R;

import java.util.ArrayList;
import java.util.List;

public class VideoTabFragment extends TabLayoutFragment {

    @Override
    public int getLayoutRes() {
        return R.layout.fragment_video_tab;
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);


    }

    @Override
    public List<String> getTitles() {
        List<String> titles=new ArrayList<>();
        titles.add("最新");
        titles.add("热门");
        return titles;
    }

    @Override
    protected List<Fragment> getFragments() {
        List<Fragment> fragments=new ArrayList<>();
        fragments.add(VideoListFragment.getInstance(SquareRequest.TYPE_NEW));
        fragments.add(VideoListFragment.getInstance(SquareRequest.TYPE_HOT));
        return fragments;
    }


}
